package com.bms.client.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 来访管理(LaiFangGuanLi)实体类
 *
 * @author makejava
 * @since 2021-03-16 09:39:39
 * @version 1.0
 */
@ApiModel(value = "LaiFangGuanLiZhengJia",description = "来访管理vo")
public class LaiFangGuanLiZhengJia implements Serializable {
    private static final long serialVersionUID = -5120862377836688375L;
    /**
    * 客户名称（可以多人 例子：zcx，zcy）
    */
    @Size(min = 0, max =25, message = "keHuMingCheng 客户名称必须在0~25位之间")
    @NotBlank(message ="keHuMingCheng 不能为空")
	@ApiModelProperty(name = "keHuMingCheng",notes = "客户名称（可以多人 例子：zcx，zcy）",dataType = "String",required = true)
    private String keHuMingCheng;
    /**
    * 来访时间
    */
	@ApiModelProperty(name = "liFangShiJian",notes = "来访时间",dataType = "Date",required = true)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    // 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date liFangShiJian;
    /**
     * 离开时间
     */
    @ApiModelProperty(name = "liKaiShiJian",notes = "离开时间",dataType = "Date",required = true)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    // 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date liKaiShiJian;
    /**
    * 人数
    */
    @NotNull(message = "renShu 人数不能为空")
    @Min(value=1,message = "renShu 人数是一个不能是0")
	@ApiModelProperty(name = "renShu",notes = "人数",dataType = "Integer",required = true)
    private Integer renShu;
    /**
    * 联系方式
    */
	@ApiModelProperty(name = "lianXiFangShi",notes = "联系方式",dataType = "String",required = true)
    @Size(min = 0, max =25, message = "keHuMingCheng 客户名称必须在0~25位之间")
    @NotBlank(message ="lianXiFangShi 联系方式不能为空")
    @Pattern(regexp = "^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$",message = "请输入正确的电话号码")
    private String lianXiFangShi;
    /**
    * 来访目的
    */
	@ApiModelProperty(name = "laiFangMuDe",notes = "来访目的",dataType = "String",required = true)
    @Size(min = 2, max =25, message = "laiFangMuDe 来访目的必须在2~25位之间")
    @NotBlank(message ="laiFangMuDe 来访目的不能为空")
    private String laiFangMuDe;
    /**
    * 公司名称
    */
	@ApiModelProperty(name = "gongSiMingCheng",notes = "公司名称",dataType = "String",required = true)
    @Size(min = 2, max =25, message = "gongSiMingCheng 公司名称必须在0~25位之间")
    @NotBlank(message ="gongSiMingCheng 公司名称不能为空")
    private String gongSiMingCheng;
    /**
    * 科研人员id
    */
    @NotNull(message = "genJinRen 跟进人能为空")
    @Min(value=0,message = "genJinRen 跟进人id是一个大于0")
	@ApiModelProperty(name = "genJinRen",notes = "科研人员id",dataType = "Integer",required = true)
    private Integer genJinRen;
    /**
     * 合作计划
     */
    @NotNull(message = "heZuoJiHuaId 合作计划id不能为空")
    @Min(value=0,message = "heZuoJiHuaId 合作计划id大于0")
    @ApiModelProperty(name = "heZuoJiHuaId",notes = "合作计划",dataType = "Integer",required = true)
    private Integer heZuoJiHuaId;

    public String getKeHuMingCheng() {
        return keHuMingCheng;
    }

    public void setKeHuMingCheng(String keHuMingCheng) {
        this.keHuMingCheng = keHuMingCheng;
    }
        
    public Date getLiFangShiJian() {
        return liFangShiJian;
    }

    public void setLiFangShiJian(Date liFangShiJian) {
        this.liFangShiJian = liFangShiJian;
    }
        
    public Integer getRenShu() {
        return renShu;
    }

    public void setRenShu(Integer renShu) {
        this.renShu = renShu;
    }
        
    public String getLianXiFangShi() {
        return lianXiFangShi;
    }

    public void setLianXiFangShi(String lianXiFangShi) {
        this.lianXiFangShi = lianXiFangShi;
    }
        
    public String getLaiFangMuDe() {
        return laiFangMuDe;
    }

    public void setLaiFangMuDe(String laiFangMuDe) {
        this.laiFangMuDe = laiFangMuDe;
    }
        
    public String getGongSiMingCheng() {
        return gongSiMingCheng;
    }

    public void setGongSiMingCheng(String gongSiMingCheng) {
        this.gongSiMingCheng = gongSiMingCheng;
    }
        
    public Integer getGenJinRen() {
        return genJinRen;
    }

    public void setGenJinRen(Integer genJinRen) {
        this.genJinRen = genJinRen;
    }


    public Date getLiKaiShiJian() {
        return liKaiShiJian;
    }

    public void setLiKaiShiJian(Date liKaiShiJian) {
        this.liKaiShiJian = liKaiShiJian;
    }


    public Integer getHeZuoJiHuaId() {
        return heZuoJiHuaId;
    }

    public void setHeZuoJiHuaId(Integer heZuoJiHuaId) {
        this.heZuoJiHuaId = heZuoJiHuaId;
    }
}